package club.xcgame520.picturepicker.bean;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * 本地媒体文件夹
 * Created by dee on 2015/8/5.
 */
public class PictureFolder implements Serializable {

    private String name;
    private String path;
    private ArrayList<Picture> pictureList;

    public PictureFolder() {
        pictureList = new ArrayList<>();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public ArrayList<Picture> getPictureList() {
        return pictureList;
    }

    public void setPictureList(ArrayList<Picture> pictureList) {
        this.pictureList = pictureList;
    }

    public String getFirstPicturePath() {
        if (pictureList == null || pictureList.size() == 0) {
            return "";
        }
        return pictureList.get(0).getPath();
    }

    public int getPictureNumber() {
        if (pictureList == null) {
            return 0;
        }
        return pictureList.size();
    }

    @Override
    public String toString() {
        return "PictureFolder{" +
                "name='" + name + '\'' +
                ", path='" + path + '\'' +
                ", pictureList=" + pictureList +
                '}';
    }
}
